package com.bootdo.hotel.domain;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import com.bootdo.common.annotation.NotColumn;
import com.bootdo.common.fansheutils.FansheUtils;
import com.bootdo.common.fansheutils.JibenLei;
import com.bootdo.common.utils.StringUtils;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.haojiangbo.annotation.HapiFeild;


/**
 * 房价码配置
 * 
 * @author haojiangbo
 * @email 2100272728@qq.com
 * @date 2019-10-18 16:14:42
 */
 @JsonInclude(JsonInclude.Include.NON_NULL)
public class HotelRoomMoneyCode extends JibenLei {
	@NotColumn
	private static final long serialVersionUID = 1L;
	
	
	//id
	 @NotColumn 	@HapiFeild("id")
	private Long id;
	
	//酒店ID
		@HapiFeild("酒店ID")
	private Long hotelId;
	
	//酒店名称
		@HapiFeild("酒店名称")
	private String hotelName;
	
	//用户Id
		@HapiFeild("用户Id")
	private Long userId;
	
	//用户名
		@HapiFeild("用户名")
	private String userName;
	
	//房价码
		@HapiFeild("房价码")
	private String code;
	
	//名字
		@HapiFeild("名字")
	private String name;
	
	//删除标记
		@HapiFeild("删除标记")
	private Integer delFlag;
	
	//创建时间
		@HapiFeild("创建时间")
	private Date createTime;


	private Long roomTypeId;
	private String roomTypeName;

	//适用会员
	@HapiFeild("适用会员")
	private String memberLevelList;

	@NotColumn
	private List<String> 	memberLevelListArray;

	@NotColumn
	private Double money;

    public HotelRoomMoneyCode(){
    	this.delFlag = 0;
    	this.money = 0d;
    	this.createTime = new Date();
    }

	public Double getMoney() {
		return money;
	}

	public void setMoney(Double money) {
		this.money = money;
	}

	public String getMemberLevelList() {
		return memberLevelList;
	}

	public void setMemberLevelList(String memberLevelList) {
		this.memberLevelList = memberLevelList;
	}

	public List<String> getMemberLevelListArray() {
		this.memberLevelListArray = new ArrayList<>();
		if(!StringUtils.isEmpty(this.memberLevelList)){
			String  r []  = this.memberLevelList.split(",");
			for(String item : r){
				this.memberLevelListArray.add(item);
			}
		}
		return memberLevelListArray;
	}

	public void setMemberLevelListArray(List<String> memberLevelListArray) {
		this.memberLevelListArray = memberLevelListArray;
	}

	public Long getRoomTypeId() {
		return roomTypeId;
	}

	public void setRoomTypeId(Long roomTypeId) {
		this.roomTypeId = roomTypeId;
	}

	public String getRoomTypeName() {
		return roomTypeName;
	}

	public void setRoomTypeName(String roomTypeName) {
		this.roomTypeName = roomTypeName;
	}

	/**
	 * 设置：id
	 */
	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * 获取：id
	 */
	public Long getId() {
		return id;
	}
	/**
	 * 设置：酒店ID
	 */
	public void setHotelId(Long hotelId) {
		this.hotelId = hotelId;
	}
	/**
	 * 获取：酒店ID
	 */
	public Long getHotelId() {
		return hotelId;
	}
	/**
	 * 设置：酒店名称
	 */
	public void setHotelName(String hotelName) {
		this.hotelName = hotelName;
	}
	/**
	 * 获取：酒店名称
	 */
	public String getHotelName() {
		return hotelName;
	}
	/**
	 * 设置：用户Id
	 */
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	/**
	 * 获取：用户Id
	 */
	public Long getUserId() {
		return userId;
	}
	/**
	 * 设置：用户名
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}
	/**
	 * 获取：用户名
	 */
	public String getUserName() {
		return userName;
	}
	/**
	 * 设置：房价码
	 */
	public void setCode(String code) {
		this.code = code;
	}
	/**
	 * 获取：房价码
	 */
	public String getCode() {
		return code;
	}
	/**
	 * 设置：名字
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * 获取：名字
	 */
	public String getName() {
		return name;
	}
	/**
	 * 设置：删除标记
	 */
	public void setDelFlag(Integer delFlag) {
		this.delFlag = delFlag;
	}
	/**
	 * 获取：删除标记
	 */
	public Integer getDelFlag() {
		return delFlag;
	}
	/**
	 * 设置：创建时间
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	/**
	 * 获取：创建时间
	 */
	public Date getCreateTime() {
		return createTime;
	}


	@Override
	@JsonIgnore
	public List<HashMap<String, Object>> getFields() {
		// TODO Auto-generated method stub
		return FansheUtils.getFieldList(this);
	}


}
